package com.woniu.order.service;

import com.woniu.order.entity.dto.DisplayChooseProductByUserDTO;
import com.woniu.order.pojo.OrderItem;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 订单中所包含的商品 服务类
 * </p>
 *
 * @author lydia
 * @since 2023-02-16
 */
public interface IOrderItemService extends IService<OrderItem> {
    void addProductToCart(String id, Integer productQuantity,String username);

    List<OrderItem> displayProductFormCart(String username);

    void deleteProductToCart(String id,String username,Integer productQuantity);

    List<OrderItem> listSelectCartItem(String[] ids, String username);

    //String displayChooseProductsByUser(DisplayChooseProductByUserDTO displayChooseProductByUserDTO, String username) throws Exception;
}
